package com.hphs.controller;

import com.hphs.exception.BizException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class TestController {

    @GetMapping("/test")
    public String Test(){
        if(1==1){
            throw new BizException(88,"您报错了，先拜拜了您哪");
        }


        return "hello springboot Vue";
    }
}
